.model tiny
.code

org 100h

Start:	mov ax, 0b800h
	
	mov es, ax
	xor di, di
	mov bx, offset Msg

Next:	mov al, [bx]
	
	cmp al, '$'
	je Stop

	mov es:[di], al
	
	inc bx
	inc di
	
	push ax
	mov al, 00110111b
	mov es:[di], al
	pop ax
	
	inc di
	jmp Next

Stop:	mov ax, 4c00h
	int 21h

Msg:	db 'Hello, world!$'

end	Start